package com.lenovo.translatetext.ui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.lenovo.translatetext.R;

import butterknife.ButterKnife;
import butterknife.OnClick;

public class WelcomeActivity extends AppCompatActivity {

    @OnClick(R.id.to_translate)
    void toTranslate(){
        Intent intent = new Intent(WelcomeActivity.this, TranslateActivity.class);
        intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        startActivity(intent);
    }

    @OnClick(R.id.to_detect)
    void toDetect(){
        Intent intent = new Intent(WelcomeActivity.this, LanguageDetectActivity.class);
        intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        startActivity(intent);
    }

    @OnClick(R.id.to_last_pass)
    void toLastPass(){
        Intent intent = new Intent(WelcomeActivity.this, LastPassActivity.class);
        intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        startActivity(intent);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_welcome);
        ButterKnife.bind(this);
    }

}
